﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="XmlFile.aspx.cs" Inherits="js组件_jquery_xmlAndXsl_XmlFile" %><?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet href="XSLTFile.xsl" type="text/xsl"?>
<data><tt>标题</tt>
  <form>
    <BodyTitle>
      正文标题
    </BodyTitle>
    <dataItem>
      <asp:Repeater id="rep1" runat="server" DataSourceID="LinqDataSource1">
      <itemtemplate>
         <Tab>
        <id>
          <![CDATA[
           <%#Eval("ClaId") %>
          ]]>
        </id>
        <title>
          <![CDATA[
                     <%#Eval("ClaName") %>
                     <%#Server.HtmlEncode(Eval("iCount").ToString()) %>
          ]]>

              </title>
        <link t="数据表示" c="">
          <![CDATA[
           ?<%#Eval("ClaId") %>
          ]]>
          </link>
          
      </Tab>
      </itemtemplate>
      </asp:Repeater>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
              ContextTypeName="Linq_SQLServeDataContext" 
              Select="new (ClaId, ClaName, iCount)" TableName="M_AskClasses">
          </asp:LinqDataSource>
    </dataItem>

  </form>
  <!--脚本-->
  <PageScript>
    <![CDATA[
      
      $("tr").each(
        function(i)
        {
          $(this).css(
            {
              color:"#000000"
            }
          ).css("font-size","14px");
          this.style.background=["#ffffff","#C2DBF5"][i%2];
        }
      );
   
    ]]>
  </PageScript>
</data>
